import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { PageNumComponent } from './page-num.component';
import {WidgetComponent} from '../../widgets/widget/widget.component';
import {WidgetModule} from '../../widgets/widget/widget.module';
import { CommonModule} from '@angular/common';
import {TranslateModule} from '@ngx-translate/core';
import { FormsModule } from '@angular/forms';
import {TreeDemoModule} from '../../treedemo/treedemo.module';
import {ElModule} from 'element-angular';
import {DragDropModule} from 'primeng/dragdrop';
import {SchemaModule} from '../../widgets/schema/schema.module'
import {ModalDialogModule} from '../../widgets/schema/modal-dialog/modal-dialog.module'
import {EditDialogModule} from '../../widgets/schema/edit-dialog/edit-dialog.module'
import {PopoverModule} from "ng4-popover";
import {FiltersModule} from '../../widgets/filters/filters.module';
import {GroupModule} from '../../widgets/group/group.module';
import {KeysModule} from '../../widgets/keys/keys.module';
import {TableStyleModule} from '../../widgets/table-style/table-style.module'
import {PieModule} from '../../widgets/pie/pie.module';
import {FunnelModule} from '../../widgets/funnel/funnel.module'
import {ChartModule} from '../../widgets/chart/chart.module';
import {QuerytabModule} from '../../widgets/querytab/querytab.module';
import {OptiontabModule} from '../../widgets/optiontab/optiontab.module';
import { TreeDemoComponent } from 'src/pages/treedemo/treedemo.component';


const ROUTES: Routes = [
    { 
        path:'', 
        component: PageNumComponent
     }
];

@NgModule({
    declarations: [
        PageNumComponent
    ],
    imports: [
        // WidgetModule,
        CommonModule,
        FormsModule,
        TranslateModule,
        WidgetModule,
        TreeDemoModule,
        ElModule,
        DragDropModule,
        SchemaModule,
        EditDialogModule,
        ModalDialogModule,
        PopoverModule,
        FiltersModule,
        GroupModule,
        KeysModule,
        TableStyleModule,
        PieModule,
        FunnelModule,
        ChartModule,
        QuerytabModule,
        OptiontabModule,
        RouterModule.forChild(ROUTES)
    ],
    exports:[RouterModule]
})
export class PageNumModule {}
